<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>会员管理-会员留言</title>
		<jsp:include page="../../include/base.jsp"></jsp:include>
		<jsp:include page="../../include/common.jsp"></jsp:include>
		<jsp:include page="../../include/baseManage.jsp"></jsp:include>
	</head>
	<body>
		<div class="mini-toolbar"
			style="border: 0; font-size: 12px; padding-left: 6px;">
			<!-- 操作面板 -->
			<div class="operatePanel">
				<input class="mini-button" text="删除留言" iconCls="icon-remove"
					plain="false" onclick="MessageFormHandler.delMessage" visible="false" id="member_messages_del" />
				<input class="mini-button" text="展开查询" iconCls="icon-btn-expand"
					plain="false" onclick="MessageFormHandler.queryShow" visible="false" id="member_messages_query" />
				<input class="mini-button" text="刷新" iconCls="icon-btn-refresh"
					plain="false" onclick="MessageFormHandler.afresh" visible="false" id="member_messages_refresh" />
			</div>
			<!-- 查询面板 -->
			<div id="queryMessageDiv" class="queryPanel">
				<form id="messageQueryForm">
					<label class="queryPanelLbl">
						昵称：
					</label>
					<input class="mini-textbox" id="bmbNick" name="bmbNick" />
					<label class="queryPanelLbl">
						留言主题：
					</label>
					<input class="mini-textbox" id="bmbTitle" name="bmbTitle" />
					<label class="queryPanelLbl">
						留言状态：
					</label>
					<input class="mini-combobox" id="bmbState" name="bmbState"
						textField="text" valueField="id" />
					<label class="queryPanelLbl">
						是否回复：
					</label>
					<input type="radio" name="isReply" id="isReply" checked value="1" />
					是
					<input type="radio" name="isReply" id="isReply" value="0" />
					否
					<input class="mini-button" text="查询" iconCls="icon-btn-search"
						plain="false" onclick="MessageFormHandler.doQuery" />
				</form>
			</div>
		</div>
		<div class="mini-fit" id="messagePanel">
			<div id="messageGrid" class="mini-datagrid" fitColumns="true"
				style="width: 100%; height: 100%;" multiSelect="true" pageSize="20"
				borderStyle="border-bottom:0;border-left:0;border-right:0;"
				virtualScroll="true" idField="bmbEmail"
				url="<%=path%>/getMessageList.do">
				<div property="columns">
					<div type="checkcolumn"></div>
					<div type="indexcolumn" width="40" headerAlign="center">
						序号
					</div>
					<div field="bumName" name="bumName" width="80" headerAlign="center"
						allowSort="true">
						留言昵称
					</div>
					<div field="bumEmail" name="bumEmail" width="80"
						headerAlign="center" align="center" allowSort="true">
						留言邮箱
					</div>
					<div field="bumType" name="bumType" width="60" headerAlign="center"
						align="center" allowSort="true" renderer="onbumTypeRender">
						留言类型
					</div>
					<div field="bumTitle" name="bumTitle" width="80"
						headerAlign="center" align="center" allowSort="true">
						留言主题
					</div>
					<div field="bumIp" name="bumIp" width="80" headerAlign="center"
						align="center" allowSort="true">
						留言地址
					</div>
					<div field="bumState" name="bumState" width="80"
						headerAlign="center" align="center" renderer="onauditRenderer"
						allowSort="true">
						留言状态
					</div>
					<div field="bumTime" name="bumTime" width="80" headerAlign="center"
						align="center" renderer="changeDateToString" allowSort="true">
						留言时间
					</div>
					<div field="bumAttachname" name="bumAttachname" width="80"
						headerAlign="center" align="center" allowSort="true">
						附件名称
					</div>
					<div width="60" headerAlign="center" align="center"
						renderer="onCheckBack" allowSort="true">
						回复内容
					</div>
					<div width="60" headerAlign="center" align="center"
						renderer="onActionRenderer" allowSort="true">
						操作
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="handler/MessageHandler.js" type="text/javascript"></script>
	<script src="handler/MessageFormHandler.js" type="text/javascript"></script>
</html>